#include "SMPPDestAddrNpCountry.hpp"

using namespace smpp::pdu;

DestAddrNpCountry::DestAddrNpCountry(const octetString &nValue):
TLV(TLVtags::TAG_DEST_ADDR_NP_COUNTRY,nValue.size()),_Value(nValue){}

DestAddrNpCountry::DestAddrNpCountry(
const DestAddrNpCountry &nDestAddrNpCountry):
TLV(nDestAddrNpCountry),_Value(nDestAddrNpCountry.getValue()){}

bool DestAddrNpCountry::operator ==(
	const DestAddrNpCountry &nDestAddrNpCountry) const{
	return (TLV::operator == (nDestAddrNpCountry) && 
			_Value == nDestAddrNpCountry.getValue());
}

bool DestAddrNpCountry::operator !=(
	const DestAddrNpCountry &nDestAddrNpCountry) const{
	return !this->operator == (nDestAddrNpCountry);
}

DestAddrNpCountry &DestAddrNpCountry::operator = (
	const DestAddrNpCountry &nDestAddrNpCountry){
	if(*this == nDestAddrNpCountry)
		return *this;
	TLV::operator = (nDestAddrNpCountry);
	_Value = nDestAddrNpCountry.getValue();
	return *this;
}

void DestAddrNpCountry::setValue(const octetString &nValue){
	_Value = nValue;
}

const octetString &DestAddrNpCountry::getValue() const{
	return _Value;
}
